package edu.udo.sopra10.chaturaji.entities.coordinates;

/**
 * A position on a board. The supported range of x- and y-coordinates is only
 * {@code [0, 7]}, since these are the dimensions of the board.
 * 
 * @author Simon Dierl
 */
public class Position extends BoundedCoordinate {
	/**
	 * The lowest allowable coordinate value.
	 */
	private static final byte LOWER_BOUND = 0;

	/**
	 * The highest allowable coordinate value.
	 */
	private static final byte UPPER_BOUND = 7;

	/**
	 * Create a new position coordinate set with the specified values.
	 * 
	 * @param x
	 *            the x-coordinate on the board.
	 * @param y
	 *            the y-coordinate on the board.
	 */
	public Position(final byte x, final byte y) {
		super(LOWER_BOUND, UPPER_BOUND, x, y);
	}
}
